class AddReferringInstitute < ActiveRecord::Migration
  def self.up
    @parsed_file = CSV::Reader.parse(File.open('db/testData/referralinstitutes.csv','r'))
    @parsed_file.each do |row|
      ReferringInstitute.create(:referring_institute_name => row[0])
    end
  end

  def self.down
    ReferringInstitute.delete_all
  end
end
